<?php
$new_password = array('id' => 'new_password', 'name' => 'new_password', 'size' => 30, 'maxlength' => $this->config->item('password_max_length', 'tank_auth'));
$confirm_new_password = array('id' => 'confirm_new_password', 'name' => 'confirm_new_password', 'maxlength' => $this->config->item('password_max_length', 'tank_auth'), 'size' => 30);
$submit = array('class' => 'btn btn-success', 'name' => 'change', 'value' => lang('auth_change_password'));

echo form_open($this->uri->uri_string());
?>

<div class="page-header">
    <h3><?php echo lang('auth_change_password'); ?></h3>
</div>

<p>
    <span class="form-inline">
        <?php
        echo
        lang('auth_new_password', $new_password['id']).form_password($new_password).
        form_error($new_password['name'], '<span class="alert">', '</span>');
        if(isset($errors[$new_password['name']]))
            echo '<span class="alert">'.$errors[$new_password['name']].'</span>';
        ?>
    </span>
    <span class="form-inline">
        <?php
        echo
        lang('auth_confirm_new_password', $confirm_new_password['id']).form_password($confirm_new_password).
        form_error($confirm_new_password['name'], '<span class="alert">', '</span>');
        if(isset($errors[$confirm_new_password['name']]))
            echo '<span class="alert">'.$errors[$confirm_new_password['name']].'</span>';
        ?>
    </span>
</p>

<p class="form-actions"><?php echo form_submit($submit); ?></p>

<?php echo form_close(); ?>